<!--分页-->
<template>
  <el-pagination
    :current-page.sync="page.page"
    :page-size.sync="page.size"
    :total="page.total"
    :layout="layout"
    :page-sizes="[10, 20, 30, 40, 50, 100, 500 ,1000]"
    style="margin-top: 8px; bottom:35px"
    @size-change="crud.sizeChangeHandler($event)"
    @current-change="crud.pageChangeHandler"
  />
</template>
<script>
import { pagination } from '@crud/crud'

export default {
  mixins: [pagination()],
  props: {
    layout: {
      type: String,
      default: 'total, prev, pager, next, sizes'
    }
  }
}
</script>
